#include <iostream>
#include <memory>
#include <functional>
#include "Epoller.hpp"
#include "InetAddr.hpp"
#include "Socket.hpp"
#include "Log.hpp"
#include "Connection.hpp"
// #include "Protocol.hpp"
#include "Reactor.hpp"

using func_t = std::function<std::string(std::string &)>;

// 定位：只负责IO
class IOService : public Connection
{
    static const int size = 1024;

public:
    IOService(int sockfd)
    {}
    virtual void Sender() override   // 读
    {}
    virtual void Recver() override   // 发
    {
        LOG(LogLevel::DEBUG) << "I am Recver";
    }
    virtual void Excepter() override // 异常处理
    {}
    ~IOService()
    {}
};